Search results
104 packages found
A solid BaseError class that supports custom properties and wrapping errors
make it easier to manage the properties/attributes of your class.
ES 2015 way of making private properties in class-based programming
Object.defineProperty wrapper with nice description methods
A lightweight JavaScript inheritance utility.
- lighter
- type
- object
- inheritance
- prototype
- prototypal
- multiple
- swiss
- mixin
- extend
- decorate
- init
- constructor
- hidden
- View more
An extension of the native Error class that adds support for additional properties, simple assertions and can be extended as any other ES6 class.
Add inheritable default properties to your ES2015 classes! Inherit from this base class and make sure every instance created has the same default values set on it before your constructor runs.
Lazily define instance properties through the prototype chain
Class providing dot path syntax for properties, JSON serialization, singletons and more.
Chi-squared distribution constructor.
- stdlib
- stdmath
- statistics
- stats
- distribution
- dist
- object
- class
- constructor
- ctor
- probability
- prob
- chi
- squared
- View more
Executes a callback for each property found on a object, with options regarding enumerability (enumerable or non-enumerable) and ownership (inherited or only own properties). It excludes built-in properties from Object and Function prototypes by default,
- for
- each
- prop
- property
- object
- function
- enumerable
- non-enumerable
- nonenumerable
- inherited
- proto
- prototype
- prototype-chain
- class
Decorator that validates class properties upon object initialization. Based on class-validator package.
Executes a callback for each property found on a object, recursively on nested properties, with options regarding enumerability (enumerable or non-enumerable) and ownership (inherited or only own properties). It excludes built-in properties from Object an
- recursive
- deep
- for
- each
- prop
- property
- object
- function
- enumerable
- non-enumerable
- nonenumerable
- inherited
- proto
- prototype
- View more
Get all property names of an object/function/class including non-enumerable and inherited ones.
Provide private variables using WeakMaps
Clone an ES6 Class as Another Class Name for Isolating Class Static Properties.
@ace-pkg/injectable is a typescript decorators package to mark things as injectable and inject them into class properties.
Beta distribution constructor.
- stdlib
- stdmath
- statistics
- stats
- distribution
- dist
- object
- class
- constructor
- ctor
- probability
- prob
- beta
- cdf
- View more
Class factory featuring inheritance of static properties, static constructors, lazy population of prototypes, and this._super.
Normal distribution constructor.
- stdlib
- stdmath
- statistics
- stats
- distribution
- dist
- object
- class
- constructor
- ctor
- probability
- prob
- normal
- gaussian
- View more